<?php echo $this->element('displayHeader'); ?>
<div class="toolbar">
    <div id="tLeft">
        <?php echo $this->element('toolbar', array('buttons' => array('back'))); ?>
    </div>
    <div id="tRight"><?php echo $this->element('neighbors', array('model' => 'Customer', 'title' => 'name')); ?></div>
</div>

<fieldset>
    <legend>General Information</legend>
    <table>
        <tr>
            <td><?php echo $form->label('Customer.cust_no', 'No.'); ?></td>
            <td><?php echo $html->tag('span', $this->data['Customer']['cust_no']); ?></td>
        </tr>
        <tr>
            <td width="180px"><?php echo $form->label('Customer.name', 'Name'); ?></td>
            <td><?php echo $html->tag('span', $this->data['Customer']['name']); ?></td>
        </tr>
        <tr>
                <td><?php echo $form->label("CustomerSupplier.hast_cust_inventory", 'มีคลังอยู่ที่ลูกค้า') ?></td>
                <td><?php echo $this->data['CustomerSupplier'][0]['has_cust_inventory']? 'Yes': 'No'; ?></td>
            </tr>
            <tr>
                <td><?php echo $form->label("CustomerSupplier.hast_supplier_inventory", 'มีคลังอยู่ที่ Vendor') ?></td>
                <td><?php echo $this->data['CustomerSupplier'][0]['has_supplier_inventory']? 'Yes': 'No'; ?></td>
            </tr>
    </table>
</fieldset>
<?php echo $this->requestAction('supplier_customers/display_sites/' . $this->data['Customer']['id'], array('return')); ?>
